<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 用户输入
        let uname = prompt('请输入用户名：')
        let pwd = +prompt('请输入密码：')
        // 判断多分支条件，进行弹框
        if (uname === 'pink' && pwd === '123456') {
            alert('登录成功！欢迎您回家！')
        } else {
            alert('登录失败！请重新输入用户名密码！')
        }
    </script>
</body>

</html>